package com.jee.ssm.modules.posUser.app;

import com.jee.ssm.model.json.Tip;
import com.jee.ssm.modules.posUser.services.PosUserService;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;


/**
* 手持机用户管理 客户端 Controller
* @author GaoXiang
* @version 1.0
*/
@Controller

@RequestMapping("/app/posUser")
public class AppPosUserController {


    @Autowired
    private AmqpTemplate amqpTemplate;

    @RequestMapping(value = "/sendTest1")
    @ResponseBody
    public Tip send(String exchange, String code,String msg){

        amqpTemplate.convertAndSend(code,msg);
        return new Tip();
    }
    //---------------------------- property -------------------------------

    @Resource
    private PosUserService posUserService;

}
